Optimal. Leaf size=17 \[ -\frac{\cot (x) \log (\cos (x))}{\sqrt{-\cot ^2(x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0243337, antiderivative size = 17, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {4121, 3658, 3475} \[ -\frac{\cot (x) \log (\cos (x))}{\sqrt{-\cot ^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4121
Rule 3658
Rule 3475
Rubi steps
\begin{align*} \int \frac{1}{\sqrt{1-\csc ^2(x)}} \, dx &=\int \frac{1}{\sqrt{-\cot ^2(x)}} \, dx\\ &=\frac{\cot (x) \int \tan (x) \, dx}{\sqrt{-\cot ^2(x)}}\\ &=-\frac{\cot (x) \log (\cos (x))}{\sqrt{-\cot ^2(x)}}\\ \end{align*}
Mathematica [A] time = 0.008956, size = 17, normalized size = 1. \[ -\frac{\cot (x) \log (\cos (x))}{\sqrt{-\cot ^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.162, size = 67, normalized size = 3.9 \begin{align*} -{\frac{\cos \left ( x \right ) \sqrt{4}}{2\,\sin \left ( x \right ) } \left ( -\ln \left ( 2\, \left ( \cos \left ( x \right ) +1 \right ) ^{-1} \right ) +\ln \left ( -{\frac{-1+\cos \left ( x \right ) -\sin \left ( x \right ) }{\sin \left ( x \right ) }} \right ) +\ln \left ( -{\frac{-1+\cos \left ( x \right ) +\sin \left ( x \right ) }{\sin \left ( x \right ) }} \right ) \right ){\frac{1}{\sqrt{{\frac{ \left ( \cos \left ( x \right ) \right ) ^{2}}{ \left ( \cos \left ( x \right ) \right ) ^{2}-1}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.49634, size = 12, normalized size = 0.71 \begin{align*} -\frac{1}{2} i \, \log \left (\tan \left (x\right )^{2} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.487555, size = 36, normalized size = 2.12 \begin{align*} x - \arctan \left (\frac{\sin \left (x\right )}{\cos \left (x\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{1 - \csc ^{2}{\left (x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{-\csc \left (x\right )^{2} + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]